Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: remove NTP service on Xenial #14905

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

miguelpires
Copy link
Contributor

@miguelpires miguelpires commented Jan 7, 2025

The auto-refresh tests and the degraded test were failing due to conflicts between chrony.service and ntp.service. The former happened because chrony sometimes failed to run and the latter because ntp.service conflicted with chrony and the unit would be marked as failed. Removing ntp and leaving chrony fixes both issues.
If merged this replaces #14888
Fixes:

- google:ubuntu-16.04-64:tests/main/auto-refresh-backoff
- google:ubuntu-16.04-64:tests/main/auto-refresh-gating-from-snap
- google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:close
- google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:close_mid_restart
- google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:ignore
- google:ubuntu-16.04-64:tests/main/auto-refresh-retry
- google:ubuntu-16.04-64:tests/main/auto-refresh:regular
- google:ubuntu-16.04-64:tests/main/snap-refresh-hold
- google:ubuntu-16.04-64:tests/main/snapd-state
- google:ubuntu-16.04-64:tests/main/degraded

The auto-refresh tests and the degraded test were all failing. The
former happened because chrony sometimes failed to run and the latter
because ntp.service conflicted with chrony. Removing ntp and leaving
chrony fixes both issues.

Signed-off-by: Miguel Pires <[email protected]>
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.24%. Comparing base (24a0034) to head (d66a330).
Report is 84 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14905      +/-   ##
==========================================
+ Coverage   78.20%   78.24%   +0.04%     
==========================================
  Files        1151     1150       -1     
  Lines      151396   152777    +1381     
==========================================
+ Hits       118402   119547    +1145     
- Misses      25662    25851     +189     
- Partials     7332     7379      +47     
Flag Coverage Δ
unittests 78.24% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ernestl ernestl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Signed-off-by: Miguel Pires <[email protected]>
@ernestl ernestl merged commit 98d9ab6 into canonical:master Jan 8, 2025
51 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants